package com.mo.template;

import com.mo.core.template.config.ContextConfig;
import com.mo.core.template.engine.SimpleTemplateEngine;
import com.mo.core.template.engine.base.MoTemplateEngine;

import java.io.IOException;

/**
 * 测试mo模板引擎
 *
 * @author chenxiaodong
 * @date 2018-05-09 20:27
 */
public class TemplateGenerator {

    public static void main(String[] args) throws IOException {
        ContextConfig contextConfig = new ContextConfig();
        contextConfig.setBizChName("啊哈");
        contextConfig.setBizEnName("haha");
        contextConfig.setModuleName("tk");
        contextConfig.setProjectPath("D:\\tmp\\mo");

        //contextConfig.setAddPageSwitch(false);
        //contextConfig.setEditPageSwitch(false);

        MoTemplateEngine MoTemplateEngine = new SimpleTemplateEngine();
        MoTemplateEngine.setContextConfig(contextConfig);
        MoTemplateEngine.start();
    }

}
